<?php
class Dmdformstatus extends AppModel {
	var $name = 'Dmdformstatus';
	var $displayField = 'title';
	//The Associations below have been created with all possible keys, those that are not needed can be removed
var $virtualFields=array(
            'display'=>'CONCAT(Dmdformstatus.title)'
        );
	var $hasMany = array(
		'Formstatus' => array(
			'className' => 'Formstatus',
			'foreignKey' => 'dmdformstatus_id',
			'dependent' => false,			
		)
	);

        function getStatuses(){
            return $this->find('list');
        }
        function getTitle($dmdid){
             $d= $this->find('list',array('conditions'=>array('id'=>$dmdid),'fields'=>array('title')));
            return $d[$dmdid];
        }
}
?>